<?php
    $hidden = $this->formHidden('data[Category][cat_id]',$this->Item['cat_id']);
	$name = $this->formText('data[Category][cat_name]',$this->Item['cat_name'],array('class'=>'txtmedium'));
	$order			= $this->formText('data[Category][cat_order]',$this->Item['cat_order'],array('class'=>'txtshort'));
	$parents 		= $this->cmsSelect('data[Category][sub_id]',$this->Item['sub_id'],
										$this->slbCategory,array('style'=>'min-width: 200px;'));
	$arrInput = array(
                        array('input'=>$hidden),
						array('label'=>'Category name: ', 'input'=>$name),
						array('label'=>'Parents: ', 'input'=>$parents),	
						array('label'=>'Order: ', 'input'=>$order),
						);
	//------------------------MESSAGES ERROR----------------------
		if(count($this->messageError)>0){
			$errors = $this->formErrors($this->messageError,array('id'=>'errors'));
		}			
?>
<form id="appForm" name="appForm" method="post" accept-charset="utf-8">
	<?php echo $this->render('/toolbar/index.php')?>
                        <div class="clr"></div>
                         <?php // echo $this->render('admin-category/sublink/index.php')?>
                         <?php echo $errors?>
			
                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
						<div id="adminfieldset">
                             <div class="adminheader">Detail</div>
								
								<?php echo $this->partialLoop('row.php',$arrInput);?>
                                
							</div>
							
                                <!-- END: ELEMENT BOX -->	
                              <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
</form>